/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.pod.hoteishilton.application;

import edu.pod.hoteishilton.database.DatabaseService;
import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;

/**
 *
 * @author Tigaz
 */
public class DatabaseMain {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws RemoteException, MalformedURLException {
        LocateRegistry.createRegistry(12345);
        DatabaseService servico = new DatabaseService();
        Naming.rebind("//localhost:12345/HoteisHiltonDatabase", servico);
        System.out.println("Escutando Requisicoes...");// TODO code application logic here
    }
}
